<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="com.google.appengine.api.users.User" %>
<%@ page import="com.google.appengine.api.users.UserService" %>
<%@ page import="com.google.appengine.api.users.UserServiceFactory" %>
<%@ page import="javax.jdo.PersistenceManager" %>
<%@ page import="javax.jdo.Query" %>
<%@ page import="de.tuhrig.sportlog.pmf.PMF" %>
<%@ page import="de.tuhrig.sportlog.pmf.queries.QueryFactory" %>

<%
	PersistenceManager pm = PMF.get().getPersistenceManager();
	
	Query query = new QueryFactory(pm).countAllLogs();
	
	int numberOfLogs = (Integer) query.execute();
	
	query.closeAll();
	
	pm.close();
%>

<div id='right'>
	<h2>Statistis</h2>
	<ul>
		<li><%= numberOfLogs %> stored logs</li>
	</ul>
</div>